const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
  mode:'development',
  context:process.cwd(),
  entry:'./src/index.js',
  output:{
    path:path.resolve(__dirname,'dist'),
    filename:'monitor.js',
    clean: true,
    publicPath: '/',
  },
  devServer:{
    static:path.resolve(__dirname,'dist'),
  },
  module:{},
  plugins:[
    new HtmlWebpackPlugin({
      template:'./src/index.html',
      inject:'head'
    })
  ]
}